package cn.donting.jme.edit.ui.scenetree.meum;

import cn.donting.jme.edit.ui.scenetree.ClipBoard;
import com.jme3.scene.Spatial;
import cn.donting.jme.edit.ui.scenetree.meum.light.AmbientLightMenuItem;

public class AddLightMenu extends AbsTreeMenu {
    public AddLightMenu() {
        super("灯光");
        AmbientLightMenuItem ambientLightMenuItem=new AmbientLightMenuItem();
        getItems().add(ambientLightMenuItem);
    }

    @Override
    public boolean isAvailable(ClipBoard clipBoard) {
        Spatial selectSpatial = clipBoard.getSelectSpatial();
        if(selectSpatial!=null){
            return true;
        }
        return false;
    }

    @Override
    public void action(ClipBoard clipBoard) {
    }


}
